package com.hmdp.utils;

/**
 * @Author Luming
 * @Date 2024/4/25 15:13
 * @Description:
 */
public interface ILock {
    
    /**
     * 尝试获取锁
     * @param timeoutSec
     * @return
     */
    boolean tryLock(long timeoutSec);
    
    /**
     * 释放锁
     */
    void unlock();
}
